<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */

class PageAction extends HomeAction
{

    protected $Page;

    function _initialize()
	{
		parent::_initialize();

		$this->Page = D('Page');
	}


    public function index()
    {
    	$pageID = intval($_GET['pid']);
    	$page = $this->Page->find($pageID);
    	if (empty($page))
    	{
    		$this->error(L('page_not_existed'));
    	}

    	$this->assign('page', $page);
    	$this->display();
    }

}


/* End of file PageAction.class.php */
/* Location: ./App/Lib/Action/Home/PageAction.class.php */
